<?php
$this->breadcrumbs=array();

$this->sidebarTop = array(
    'label' => Yii::t('BackEnd', "Menu item"),
    'link' => Yii::app()->createUrl('menuItem/index', array('mId'=>$model->menu_id))
);
//Declare icons
$iconManager = '<img src="'.Yii::app()->request->baseUrl.'/css/admin/images/icons/18_12x12.png" class="icon" />&nbsp;';
$iconSave = '<img src="'.Yii::app()->request->baseUrl.'/css/admin/images/icons/20_12x12.png" class="icon" />&nbsp;';
$iconReset = '<img src="'.Yii::app()->request->baseUrl.'/css/admin/images/icons/reset_12x12.png" class="icon" />&nbsp;';
$iconTitle = '<img src="'.Yii::app()->request->baseUrl.'/css/admin/images/icons/edit_15x15.png" class="icon" />&nbsp;';

$this->menu=array(
	array('label'=>Yii::t('BackEnd', 'List menu item'), 'url'=>array('index', 'mId'=>$model->menu_id), 'visible'=>!UserAccess::checkAccess('menuItemAdmin')),
	array('label'=>$iconManager.Yii::t('BackEnd', 'Manage menu item'), 'url'=>array('admin', 'mId'=>$model->menu_id), 'visible'=>UserAccess::checkAccess('menuItemAdmin')),
    array('label'=>$iconSave.Yii::t('BackEnd', 'Save'), 'url'=>'javascript:void(0)', 'linkOptions'=>array('onclick'=>'document.getElementById(\'menu-item-form\').submit();return false;')),
    array('label'=>$iconReset.Yii::t('BackEnd', 'Reset'), 'url'=>'javascript:void(0)', 'linkOptions'=>array('onclick'=>'document.getElementById(\'menu-item-form\').reset();return false;')),
);

$this->slidebar=array(
	array('label'=>Yii::t('BackEnd','Basic information'), 'name'=>'basic-info', 'rel'=>'menuItem-basic-info'),
);

$this->title = $iconTitle.Yii::t('BackEnd', "Update").' : '.$model->name;
?>


<?php echo $this->renderPartial('_form', array('model'=>$model)); ?>